import request from '@/utils/request'
import qs from 'qs'

// 积分商城  jfcs/query
export const jfcsPage = params => {
  return request({
    url: '/jfcs/query',
    method: 'GET',
    params
  })
}

// 新增 jfcs/save
export const jfcsSave = params => {
  return request({
    url: '/jfcs/save?' + qs.stringify(params),
    method: 'POST'
  })
}

// 修改 /jfcs/update
export const jfcsUpdate = data => {
  return request({
    url: '/jfcs/update',
    method: 'POST',
    data
  })
}

export const jfcsDelete = data => {
  return request({
    url: '/jfcs/deleteById?' + qs.stringify(data),
    method: 'POST'
  })
}
